package operation;

import book.Book;
import book.BookList;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2021/11/17
 * \* Time: 13:08
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */
public class DisplayOperation implements IOperation{
    public void work(BookList bookList){
        System.out.println("打印图书！");
        int size=bookList.getUseSize();
        for (int i=0;i<size;i++){
            Book book=bookList.getPos(i);
            System.out.println(book);
        }
    }
}
